#include <iostream.h> // Zadanie 5.3
#include <iomanip.h>
#include <conio.h>

float a, b, pole;

void pole_prostokata(float x, float y) // deklaracja i definicja funkcji
{
 pole = x*y;
 cout << fixed << setprecision(2);
 cout << "Pole prostokata o boku a = " << x << " i boku b = " << y;
 cout << " wynosi " << pole << "." << endl;
}

main()
{
cout << "Program oblicza pole prostokata." << endl;
cout << "Podaj bok a." << endl;
cin >> a;
cout << "Podaj bok b." << endl;
cin >> b;

pole_prostokata(a, b); // wywolanie funkcji

getch(); // czeka na nacisniecie dowolnego klawisza
}
